package com.atguigu.spzx.cloud.feign.api;
import com.atguigu.spzx.cloud.model.entity.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * BelongProject: springCloud
 * BelongPackage: com.atguigu.spzx.cloud.order.feign
 * Description:
 *
 * @Author 段鑫涛
 * @Create 2025/5/26 10:16
 * @Version 1.0
 */
@FeignClient(value = "spzx-cloud-user",contextId = "userFeignClient", fallback = UserFeignClientFallback.class)
public interface UserFeignClient {

    @GetMapping("/api/user/findUserByUserId/{userId}")
    User queryById(@PathVariable("userId") Long userId) ;
}
